home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / include / incl98.zoo / pwd.h < prev    next >
C/C++ Source or Header  |  1993-11-05  |  2KB  |  55 lines

  1. #ifndef _PWD_H
  2. #define _PWD_H
  3. /* file to describe password file fields */
  4. /*
  5. Revised 29/01/93 by Hildo Biersma (boender@dutiws.twi.tudelft.nl):
  6. - include aging info
  7. - support System V routines
  8. */
  9.  
  10. #ifndef _COMPILER_H
  11. #include <compiler.h>
  12. #endif
  13.  
  14. #ifndef _POSIX_SOURCE
  15. #ifndef _STDIO_H
  16. #include <stdio.h>
  17. #endif
  18. #endif /* _POSIX_SOURCE */
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. struct passwd
  25. {
  26.         char    *pw_name;    /* login name                  */
  27.         char    *pw_passwd;  /* encrypted password          */
  28.         _UID_T  pw_uid;      /* numerical user ID           */
  29.         _GID_T  pw_gid;      /* numerical group ID          */
  30.         char    *pw_age;     /* password aging information  */
  31.         char    *pw_comment; /* same string as pw_gecos     */
  32.         char    *pw_gecos;   /* gecos (comment) field       */
  33.         char    *pw_dir;     /* initial working directory   */
  34.         char    *pw_shell;   /* program to use as a shell   */
  35. };
  36.  
  37. __EXTERN struct passwd    *getpwnam __PROTO((const char *));
  38. __EXTERN struct passwd    *getpwuid __PROTO((_UID_T));
  39.  
  40. #ifndef _POSIX_SOURCE
  41. __EXTERN void        endpwent    __PROTO((void));
  42. __EXTERN struct passwd    *fgetpwent    __PROTO((FILE *));
  43. __EXTERN int        getpw        __PROTO((int, char *));
  44. __EXTERN struct passwd    *getpwent    __PROTO((void));
  45. __EXTERN int        putpwent __PROTO((const struct passwd *, FILE *));
  46. __EXTERN void        setpwent    __PROTO((void));
  47. __EXTERN void        setpwfile    __PROTO((char *));
  48. #endif /* _POSIX_SOURCE */
  49.  
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53.  
  54. #endif /* _PWD_H */
  55.